<template>
	<view class="myNavBox">
		<view class="customBar" :style="{paddingRight:menuButtonWidth*2+'rpx',paddingTop:customTop*2+'rpx'}">
			<view class="left">
				<slot name='left'></slot>
			</view>
			<view class="center">
				<slot name='center'>
				</slot>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {

		},
		data() {
			return {
				customTop: 0,
				menuButtonWidth: 0,
			}
		},
		beforeMount() {
			this.customTop = this.$utils.getSystemInfo().navTop;
			this.menuButtonWidth = this.$utils.getMenuButtonWidth();
		},
	}
</script>

<style lang="scss" scoped>
	.myNavBox {
		width: 100%;

		.statusBox {
			width: 100%;
		}

		.customBar {
			width: 100%;
			display: flex;
			align-items: center;

			.center {
				flex: 1;
				height: 100%;
			}
		}
	}
</style>